package com.czu;

import com.czu.domain.Person;
import org.apache.cxf.jaxrs.client.WebClient;
import org.junit.Test;

import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

public class Client {
    @Test
    public void testFirGet() {
        Person response = WebClient.create("http://localhost:8080/rs").path("/person/get/1")
                .accept(MediaType.APPLICATION_JSON)
                .get(Person.class);
        System.out.println(response);
    }
}
